package demo;

/**
 * @Author: XXHH
 * @CreateTime: 2025-01-12
 */
public class Test {
    public static void main(String[] args) {
        Triangel triangel = new Triangel();
        triangel.create();
    }
    public static void main2(String[] args) {
        Flower flower = new Flower();
        flower.draw();
        flower.create();
        Shape shape = new Shape() {
            @Override
            public void create() {
                System.out.println("创建图形.");
            }
        };
        shape.draw();
    }
}
